package com.example.library.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 胡绍杆
 * @since 2022-06-16
 */
@TableName("t_user")

public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "account")
      private String account;

    private String password;

    private Integer sex;

    private String username;

    private String email;

    private String photo;

    private Integer role;

    private Double cash;

    private Integer userState;

    
    public String getAccount() {
        return account;
    }

      public void setAccount(String account) {
          this.account = account;
      }
    
    public String getPassword() {
        return password;
    }

      public void setPassword(String password) {
          this.password = password;
      }
    
    public Integer getSex() {
        return sex;
    }

      public void setSex(Integer sex) {
          this.sex = sex;
      }
    
    public String getUsername() {
        return username;
    }

      public void setUsername(String username) {
          this.username = username;
      }
    
    public String getEmail() {
        return email;
    }

      public void setEmail(String email) {
          this.email = email;
      }
    
    public String getPhoto() {
        return photo;
    }

      public void setPhoto(String photo) {
          this.photo = photo;
      }
    
    public Integer getRole() {
        return role;
    }

      public void setRole(Integer role) {
          this.role = role;
      }
    
    public Double getCash() {
        return cash;
    }

      public void setCash(Double cash) {
          this.cash = cash;
      }
    
    public Integer getUserState() {
        return userState;
    }

      public void setUserState(Integer userState) {
          this.userState = userState;
      }

    @Override
    public String toString() {
        return "User{" +
              "account=" + account +
                  ", password=" + password +
                  ", sex=" + sex +
                  ", username=" + username +
                  ", email=" + email +
                  ", photo=" + photo +
                  ", role=" + role +
                  ", cash=" + cash +
                  ", userState=" + userState +
              "}";
    }
}
